﻿using DataTransfer.SDK;
using MiniFox.Platform.File.Models;
using Newtonsoft.Json;

namespace DataTransfer.Core.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class ImportBatchResult
    {
        /// <summary>
        /// 
        /// </summary>
        public ImportBatchResult()
        {
        }
        /// <summary>
        /// 
        /// </summary>
        public string BatchId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("groups")]
        public List<ImportGroupResult> GroupResults { get; set; } = [];
    }
    /// <summary>
    /// 
    /// </summary>
    public class ImportGroupResult
    {
        public FileData File { get; set; }

        /// <summary>
        /// 导入结果汇总
        /// </summary>
        [JsonProperty("summary")]
        public SummaryModel[] ImportSummary { get; set; } = [];

    }
}
